//退出
HApplication.Logout = function(){
	new Request({
    	url: '${request.contextPath}/auth/logout.action',
    	onSuccess: function(text,xml){
    		window.location.href='login.action';
    	}
	}).send();
}
    
if ($('logout')){
	$('logout').addEvent('click', function(e){	
		new Event(e).stop();
		HApplication.Logout();
	});
}